import request from '@/utils/request'
// 查询用户列表
export function listUser(query) {
  return request({
    url: '/user/getlist',
    method: 'get',
    params: query
  })
}


// 新增用户
export function addUser(data) {
  return request({
    url: '/user/add',
    method: 'post',
    data: data
  })
}

// 编辑用户
export function editUser(data) {
  return request({
    url: '/user/edit',
    method: 'post',
    data: data
  })
}

// 删除用户
export function deleteUser(query) {
  return request({
    url: '/user/delete',
    method: 'get',
    params: query
  })
}

// 上传用户图片
export function uploaduserpic(data) {
  return request({
    url: '/fileupload/uploaduserpic',
    method: 'post',
    data: data
  })
}

// 获取用户信息

export function getuserinfo(query) {
  return request({
    url: '/user/getuserinfo',
    method: 'get',
    params: query
  })
}
